package com.sheng.service.impl;

import com.sheng.dao.UserDao;
import com.sheng.domain.User;
import com.sheng.service.UserService;

import java.util.List;

public class UserServiceImpl implements UserService {
    private UserDao userDao;
    private String phone;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public List<User> findAll() {
        List<User> all = userDao.findAll();

        return all;
    }
}
